#ifndef INDEX_H_INCLUDED
#define INDEX_H_INCLUDED
#define nom_def "PAK.DKM" 

#define MAX_SON	50

#define SON_CLAC	 0
#define SON_START	 1
#define SON_COUAC	 2
#define SON_EXPLOSE	 3
#define SON_PAS		 4
#define SON_SABRE	 5
#define SON_JETTE_BALLE 6
#define SON_CASSE_CAISSE 7
#define SON_CHOPE 2
#define SON_TOUC 9
#define SON_FIGHT 11
#define SON_TOOON 10

#define PAD_NON		 0
#define PAD_KEY1	 1
#define PAD_KEY2	 2
#define PAD_JOYSTICK 3
#define PAD_IA	     4
#define PAD_LAN		 5 

#define MAX_PAD 16

#define LAN_CARTE	1
#define LAN_PADS	3
#define LAN_EXIT	2
#define LAN_REDRAW  6
#define LAN_UPDATE	4
#define LAN_VICTOIR 5
#define LAN_EFF		7 
#define LAN_PADS_SECURE	8
#define LAN_CLIENT_PAD	10 
#define LAN_CLIENT_EXIT	11 
#define LAN_PAUSE	12
#define LAN_VICTORY 13

#define MAX_CARTE 16
#define MAPX 14
#define MAPY 12
#define MAPL 8
#define MAX_MAP (MAPL-3)

#define B_START   3
#define B_BACK	  2
#define B_ACTION1 0
#define B_ACTION2 1
#define B_ACTION3 2

#define EFF_NONE	0
#define EFF_CAISSE1 1
#define EFF_CAISSE2 2
#define EFF_SANG0	3
#define EFF_SANG1	4
#define EFF_SANG2	5
#define EFF_CORDE	6
#define EFF_SON		7
#define EFF_CREATE_B 8
#define EFF_DELETE_B 9


#define PAC_INTRO		pK->pacs[0]->pacs[0]
#define PAC_EDIT		pK->pacs[0]->pacs[1]
#define PAC_MENU		pK->pacs[0]
#define PAC_POLICE		pK->pacs[1]
#define PAC_FLECHE		pK->pacs[3]->pacs[1]
#define PAC_MAP			pK->pacs[5]
#define PAC_FOND		pK->pacs[5]->pacs[0]
#define PAC_AVATAR(a)	pK->pacs[2]->pacs[a]
#define PAC_COULEUR		pK->pacs[3]->pacs[0]
#define PAC_DEBRI		pK->pacs[4]
#define PAC_PATTES		pK->pacs[4]->pacs[0]
#define PAC_TRACES		pK->pacs[4]->pacs[1]
#define PAC_BAZARD		pK->pacs[6]
#define PAC_BALLE(a)	pK->pacs[11]->pacs[a]
#define PAC_BONUS		pK->pacs[9]->pacs[0]
#define PAC_BONI		pK->pacs[9]->pacs[1]
#define PAC_BKG			pK->pacs[0]->pacs[2]
#define PAC_CAUST		pK->pacs[0]->pacs[3]

#define PAC_POULE(couleur,dire,anim)  pK->pacs[10]->pacs[couleur]->pacs[dire]->pacs[anim]
#define PAC_POULE_B(dire,anim)  pK->pacs[8]->pacs[dire]->pacs[anim]

#define NO_POLICE	1

#define ANI_PICORE	0
#define ANI_MARCHE	1
#define ANI_SABRE	2
#define ANI_VICTIME 4

#define POULE_DERAPE 0.15
#define POULE_MOUV(a,b)		( (b)? float(0.10) : float(0.45+0.20*a) )
#define POULE_LATENCE	5
#define POULE_VIE		3
#define POULE_VISION	5
#define POULE_LASSOSPEED(a) float(8+1.5*a)
#define POULE_LASSOBRING(a) float(7+1.5*a)
#define POULE_PORTEE	36
#define POULE_CORDAGE	5 
#define POULE_ETOURDIE	35
#define POULE_PICORE	50
#define POULE_PORTEE_CORDE 8
#define	POULE_MIN_CORDE 2
#define	POULE_CONTRER 5

#define	TEMPS_FRENESIE (5*60)
#define	TEMPS_GEL	   (10*60)

#define CAISSE_BONUS	3
#define PRIOR_SCENE		1000
#define nb_cartes		16
#define NB_BONUS		5

#define COMTE_REBOUR -60

struct carte
{
int    ambiance;
Dpoint Start[2];
Dpoint Way[MAX_MAP];
unsigned short	map[MAPX][MAPY];
void Nouvelle_carte();
};
#endif